import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    // 登录状态
    loginState: false,
  },
  getters: {
    loginState() {
      return state.loginState
    },
  },
  mutations: {
    SETLOGIN(val) {
      state.loginState = val
    },
  },
  actions: {},
  modules: {},
})
